package com.jt.controller;

import com.jt.mapper.DogMapper;
import com.jt.pojo.Dog;
import com.jt.service.DogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DogController {

    @Autowired
    private DogService dogService;
    @RequestMapping("/findDogAll")
    private List<Dog> findDogAll(){
        return dogService.findDogAll();
    }
}
